package xu.com.openfeign.component;


import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
import xu.com.openfeign.clients.UserFeignClient;

@Component
public class UserClientFallbackFactory implements FallbackFactory<UserFeignClient> {

    @Override
    public UserFeignClient create(Throwable cause) {
        return new UserFeignClient() {
            @Override
            public String hello(String name) {
                return "";
            }
        };
    }
}
